package com.admin.exam.vo.query;

import com.admin.base.BaseQuery;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
* 
*/
public class PersonInfoQuery extends BaseQuery {

	/**
	 * 
	 */
	private Integer id;
	/**
	 * 医院名称
	 */
	private Integer hospital;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 手机号
	 */
	private String phone;
	/**
	 * 城市
	 */
	private String city;
	/**
	 * 科室
	 */
	private String department;
	/**
	 * 分数
	 */
	private Integer scores;
	/**
	 * 考试时间秒
	 */
	private Integer time;
	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private LocalDate createTimeBegin;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private LocalDate createTimeEnd;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return this.id;
	}

	public void setHospital(Integer hospital) {
		this.hospital = hospital;
	}

	public Integer getHospital() {
		return this.hospital;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCity() {
		return this.city;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setScores(Integer scores) {
		this.scores = scores;
	}

	public Integer getScores() {
		return this.scores;
	}

	public void setTime(Integer time) {
		this.time = time;
	}

	public Integer getTime() {
		return this.time;
	}

	public void setCreateTimeBegin(LocalDate createTimeBegin) {
		this.createTimeBegin = createTimeBegin;
	}

	public LocalDate getCreateTimeBegin() {
		return this.createTimeBegin;
	}

	public void setCreateTimeEnd(LocalDate createTimeEnd) {
		this.createTimeEnd = createTimeEnd;
	}

	public LocalDate getCreateTimeEnd() {
		return this.createTimeEnd;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("PersonInfo[");
		sb.append("id=").append(id);
		sb.append(",hospital=").append(hospital);
		sb.append(",name=").append(name);
		sb.append(",phone=").append(phone);
		sb.append(",city=").append(city);
		sb.append(",department=").append(department);
		sb.append(",scores=").append(scores);
		sb.append(",time=").append(time);
		sb.append(",createTimeBegin=").append(createTimeBegin);
		sb.append(",createTimeEnd=").append(createTimeEnd);
		sb.append("]");
		return sb.toString();
	}
}
